package ynu.edu.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 数据库配置类，确保JPA正确初始化
 */
@Configuration
@EnableJpaRepositories(basePackages = "ynu.edu.repository")
@EntityScan(basePackages = "ynu.edu.entity")
public class DatabaseConfig {
    // 这里不需要额外的配置，@EnableJpaRepositories和@EntityScan已经足够
} 